package com.esri.core.geometry;

import com.github.mikephil.charting.utils.Utils;

/* loaded from: classes.dex */
class MathUtils {
    MathUtils() {
    }

    static double a(double d, double d2) {
        int i = (d2 > Utils.DOUBLE_EPSILON ? 1 : (d2 == Utils.DOUBLE_EPSILON ? 0 : -1));
        double abs = Math.abs(d);
        return i >= 0 ? abs : -abs;
    }

    static double b(double d, double d2) {
        return d - (Math.floor(d / d2) * d2);
    }
}
